import request from '@/utils/request'

// 根据物料条码查询库存
export function getProductByBarcode(barcode) {
  return request({
    url: '/storehouse/stock/infoByBarcode/' + barcode,
    method: 'get',
  })
}
// 根据库位编号查询库位
export function getLocationByNo(no) {
  return request({
    url: '/basic/location/locationByNo/' + no,
    method: 'get',
  })
}

// 新增移库操作
export function transfer(data) {
  return request({
    url: '/storehouse/transfer',
    method: 'post',
	data
  })
}